home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / text / hyper / ADtoHT2_1.lha / Source.lha / MyLib.lha / string / strcasecmp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-04  |  345 b   |  20 lines

  1. #include <string.h>
  2. #include <ctype.h>
  3.  
  4. /**************************************************************************/
  5.  
  6. #undef strcasecmp
  7.  
  8. int strcasecmp(const char *String1, const char *String2)
  9.  
  10. {
  11.   int Result;
  12.  
  13.   while (!(Result=tolower(*String1)-tolower(*String2)) && *String1)
  14.     {
  15.       String1++;
  16.       String2++;
  17.     }
  18.   return Result;
  19. }
  20.